www.gusucode.com > 基于马尔科夫随机场的图像分割matlab源码。包括ICM迭代条件模式求解最大后验概率算法 > code23/matlab MRF toy examples/gaussplot.m
% gaussplot.m npts = 40; x = randn(1,npts); y = ones(1,npts); figure; stem(x,y); axis([-4 4 0 2]); figure; stem(x,y); axis([-4 4 0 2]); hold on; xx = -5:0.1:5; z = 1.3 * exp(-xx.^2 ./ 2); plot(xx, z, 'r'); hold off;